package com.lyx.bank.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lyx.bank.entity.Account;
import org.apache.ibatis.annotations.Param;

/**
 * @ClassName AccountMapper
 * @Description: TODO
 * @Author 86152
 * @Date 2022/4/22
 * @Version V1.0
 **/
public interface AccountMapper extends BaseMapper<Account> {

   Account login( String cardNo);

   int updatePass(@Param("cardNo") String cardNo, @Param("pass") String pass);

   int transaction(@Param("cardNo") String cardNo, @Param("tranMoney") Double tranMoney);

   int transfer(@Param("cardNo") String cardNo, @Param("tranMoney") Double tranMoney);
}
